///////////////////////////////////////////////////////////////////////////////
//
//
//
///////////////////////////////////////////////////////////////////////////////

package controller
{
    import model.UserProxy;
    import model.vo.UserVO;

    import org.kolonitsky.alexey.debug.DebugWrapper;
    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    public class UserSignupCommand extends SimpleCommand
    {
        override public function execute(notification:INotification):void
        {
            super.execute(notification);
            DebugWrapper.trace("INFO: CMD > UserSignup");

            var userProxy:UserProxy = facade.retrieveProxy(UserProxy.NAME) as UserProxy;
            userProxy.signup(notification.getBody() as UserVO);
        }
    }
}
